import airsim
import matplotlib.pyplot as plt
import numpy as np
client = airsim.MultirotorClient()

responses = client.simGetImages(
    [airsim.ImageRequest("0", airsim.ImageType.Scene),
    airsim.ImageRequest("0", airsim.ImageType.Scene, False, False),
    airsim.ImageRequest("0", airsim.ImageType.DepthPlanar,True)
    ])
response = responses[1]
img1d = np.fromstring(response.image_data_uint8, dtype=np.uint8)
img_rgb = img1d.reshape(response.height, response.width, 3)

plt.figure()
plt.imshow(img_rgb)
plt.show()
